<!-- $Id: trashComment.html 67 2011-03-26 13:06:51Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<load href="__PUBLIC__/Js/domTT/domLib.js" />
<load href="__PUBLIC__/Js/domTT/fadomatic.js" />
<load href="__PUBLIC__/Js/domTT/domTT.js" />
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>

<div class="form-div">
  <form action="__URL__/trashComment" name="searchForm" method="post">
    <img src="__PUBLIC__/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
    关键字 <input type="text" name="keyword" size="15" />
    <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>

<form method="post" action="__URL__/handleComment" name="listForm" onsubmit="return confirmSubmit_(this);">
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
      <tbody>
        <tr>
          <th><input type="checkbox" id="chkOpenAll" onclick="openAll(this)" />
            <a href="javascript:void(0)" onclick="javascript:sortBy('comment_id','<if condition="$sort eq asc">desc<else/>asc</if>');" title="点击对列表排序">编号</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
        <th>评论人</th>
		<th>评论内容</th>
		<th>评论时间</th>        	
		<th>显示</th>
		<th>审核</th>
		<th>已读</th>
		<th>回复</th>
		<th>操作</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
            <td style="background-color: rgb(255, 255, 255);" width="9%" align="center"><input type="checkbox" id="key" name="key[]" onclick="openAll()" value="{$vo.comment_id}" />{$vo.comment_id}</td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="13%"><a href="#" onMouseOver="this.style.color = '#D17E62'; domTT_activate(this, event, 'content', '<b>E-mail: {$vo.comment_email}</b><br /><b>Homepage: {$vo.comment_url}</b><br /><b>IP: {$vo.comment_ip}</b>', 'trail', true, 'fade', 'both', 'fadeMax', 87, 'styleClass', 'niceTitle');" onMouseOut="this.style.color = ''; domTT_mouseout(this, event);">{$vo.comment_author}</a></td>
			<td style="background-color: rgb(255, 255, 255);" align="left" width="27%"><a href="#" onMouseOver="this.style.color = '#D17E62'; domTT_activate(this, event, 'content', '<b>{$vo.comment_content}</b>', 'trail', true, 'fade', 'both', 'fadeMax', 87, 'styleClass', 'niceTitle');" onMouseOut="this.style.color = ''; domTT_mouseout(this, event);">{$vo.comment_content|msubstr=0,40}</a></td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="16%"><span>{$vo.comment_addtime|date='Y-m-d H:i:s',###}</span></td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><eq name='vo.comment_visible' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else /><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><eq name='vo.comment_remark' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else /><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><eq name='vo.comment_approved' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else/><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><present name = "vo.comment_reauthor"><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else /><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></present></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center">
			<a href="__URL__/handleComment/act/restore/id/{$vo.comment_id}" title="还原" onclick="return confirm('- 确定要执行还原操作?');" >还原</a> |
			<a href="__URL__/handleComment/act/drop/id/{$vo.comment_id}" title="删除" onclick="return confirm('- 彻底删除评论信息将无法恢复.\\r\\n- 您确实要删除选中的评论吗?');" >删除</a></td>    
          </tr>
        </volist>
        <tr>
          <td colspan="2">
		<input type="hidden" name="select" value="do" />
		<select name="act" onchange="changeAction()">
        <option value="">请选择...</option>
        <option value="restore">还原</option>
        <option value="drop">移除</option>
		</select>
		  <input type="submit" value=" 确定 " id="btnSubmit" name="btnSubmit" class="button" disabled="true" /></td>
          <td style="background-color: rgb(255, 255, 255);" colspan="7" align="right" nowrap="true"><div class="{$pagestyle}" id="turn-page">{$page}</div></td>
        </tr>
      </tbody>
    </table>
  </div>
</form>

<script language="JavaScript">
function confirmSubmit_(frm, ext)
{
	if (frm.elements['act'].value == 'restore')
	{
	  
		return confirm("- 您确实要把选中评论还原吗?");
	  
	}
	else if (frm.elements['act'].value == 'drop')
	{
	  
		return confirm("- 彻底删除评论信息将无法恢复.\r\n- 您确实要删除选中的评论吗?");
	  
	}
	else if (frm.elements['act'].value == '')
	{
		return false;
	}
	else
	{
		return true;
	}
}

function changeAction()
{
	var frm = document.forms['listForm'];
	
	if (!document.getElementById('btnSubmit').disabled && confirmSubmit_(frm, false))
	{
		frm.submit();
	}
}
</script>
<include file="Public:pagefooter"/> 